package com.yz.antlr.VisitorDemo;

/**
 * @author yanzhao
 * @version 1.0
 * TODO
 * @date 2022/4/2 18:02
 */
public class Waitress {
    Component menu;

    public Waitress(Component menu) {
        this.menu = menu;
    }

    // 遍历方法
    public void printMenu(Visitor visitor) {
        menu.accept(visitor);
    }
}
